package pcb.views.uievents 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class UIEvent extends Event 
	{
		public static const CLICKED:String = "clicked";
		public static const MENU_ITEM_CLICKED:String = "menu_item_clicked";
		public static const MENU_NO_ITEM_CLICKED:String = "menu_no_item_clicked";
		
		public var id:String = "";
		public var data:*;
		
		public function UIEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			var ev:UIEvent = new UIEvent(type, bubbles, cancelable);
			ev.id = id;
			ev.data = data;
			return ev;
		} 
		
		public override function toString():String 
		{ 
			return formatToString("UIEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}